home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 46 / Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso / -in_the_mag- / reader_requests / scilab / demos / control / scheme.dem < prev   
Text File  |  1999-09-16  |  581b  |  10 lines

  1. x=[5,10,20,40,50,70,80,90];
  2. y=[22,28,30,32];xmin=-10;xmax=100;ymin=12;ymax=40;
  3. xx=[xmin,xmin,x(1),x(2),x(2),x(7),x(4),x(6),x(3),x(4),x(5),x(6),x(3),x(3),x(5),x(5);
  4.   xmax,xmax,x(3),x(2),x(7),x(7),x(5),90,x(3),x(4),x(5),x(6),x(4),x(4),x(6),x(6)];
  5. yy=[ymin,ymax,y(3),y(1),y(1),y(1),y(3),y(3),y(2),y(2),y(2),y(2),y(2),y(4),y(2),y(4);ymin,ymax,y(3),y(3),y(1),y(3),y(3),y(3),y(4),y(4),y(4),y(4),y(2),y(4),y(2),y(4)];
  6. xbasc(0);xset("window",0);xselect();
  7. plot2d(xx,yy,-ones(1,16),'022');xstring(28,30,'K');xstring(56,30,'Plant')
  8. xstring(12,28.80,'-');
  9. xtitle('PLANT   and   CONTROLLER')
  10.